package com.climber.s_mybatis.controller;

import com.climber.s_mybatis.pojo.Book;
import com.climber.s_mybatis.services.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class BookController {

    @Autowired
    BookService bookService;



    @RequestMapping("allbook")
    public List<Book> findAllBookInfo(){
        return bookService.findAllBook();
    }
}
